#ifndef STOCKVIEWADDDIALOG_H
#define STOCKVIEWADDDIALOG_H

#include <QtGui>
#include "gui/basedialog.h"
#include "core/itemcontroller.h"
#include "core/stockmodel.h"
#include "core/stockcontroller.h"

class StockViewAddDialog : public BaseDialog
{
    Q_OBJECT
public:
    explicit StockViewAddDialog(QWidget *parent, ItemModel *item);

    StockModel *getStock();

signals:

public slots:
    void onSaveButtonClicked();

protected:
    virtual void initDialogComponents();
    void initDialogSignalsAndSlots();

    ItemModel *item;
    StockModel *stockData;

    QGridLayout *gridLayout;

    QLabel *serialLabel;
    QLineEdit *serialEdit;

    QDialogButtonBox *buttonBox;
};

#endif // STOCKVIEWADDDIALOG_H
